<?php


namespace app\common\model;


use app\common\model\search\PhoneRecordSearch;

class PhoneRecord extends BaseModel
{
    use PhoneRecordSearch;

    protected $name = "phone_record";

    public function getList()
    {
        // 分页列表
        $result = $this->mongoSearch()
            ->field('*')
            ->order('_id', 'desc')
            ->paginate($this->pageLimit);
        if ($result->items() > 0) {
            $result->append(["status_text"]);
        }
        return $result;
    }
}